﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace FlyBird
{
    //工具类
    class GameUtil
    {
        //装载图片
        public static Image loadBufferedImage(string imgPath)
        {
            try
            {
                return Image.FromFile(imgPath);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.StackTrace);
            }
            return null;
        }
    }
}
